<script setup>
import {ref, reactive} from "vue";

const emit = defineEmits(["submit", "cancel"])

const props = defineProps(["data"])
const formRef = ref()
const formData = reactive({})
const formRules = ref([])

function submit() {
    emit('submit', formData)
}

function cancel() {
    // formRef.value.resetFields()
    emit('cancel')
}
</script>

<template>
    <router-view/>
</template>

<style scoped>

</style>